package com.zyf.project.kvdb.protocol.proto.impl;

import com.zyf.project.kvdb.protocol.proto.DatabaseBaseInfo;
import com.zyf.project.kvdb.protocol.proto.DatabaseBaseInfos;

/**
 * <h1>数据库实例基础信息列表</h1>
 * <p>实现了 {@link DatabaseBaseInfos} 接口</p>
 *
 * @author Zhou Yifan
 */
public class KVDBDatabaseBaseInfos implements DatabaseBaseInfos {

    private DatabaseBaseInfo[] baseInfos;

    public KVDBDatabaseBaseInfos(DatabaseBaseInfo[] baseInfos) {
        this.baseInfos = baseInfos;
    }

    /**
     * 获取数据库基础信息列表
     *
     * @return {@link DatabaseBaseInfo} 类型数组
     */
    @Override
    public DatabaseBaseInfo[] getBaseInfos() {
        return baseInfos;
    }

    public void setBaseInfos(DatabaseBaseInfo[] baseInfos) {
        this.baseInfos = baseInfos;
    }
}
